<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<div class="col-sm-3 col-md-2 sidebar" th:fragment="leftsidebar(activeUrl)">

    <div class="tree">
        <ul style="padding-left:0px;" class="list-group">
            <li th:if="${permission.children.size()== 0}"
                th:each="permission:${session.rootPermission}"
                class="list-group-item tree-closed">
                <a th:href="@{${permission.url}}" href="main.html">
                    <i th:class="${permission.iconClass}"
                       class="glyphicon glyphicon-dashboard"></i>
                    [[${permission.name}]]</a>
            </li>

            <li th:if="${permission.children.size() > 0}"
                th:each="permission:${session.rootPermission}"
                class="list-group-item"
                th:class="${activeUrl == 'main.html' }? 'list-group-item tree-closed' : 'list-group-item'">
                        <span>
                            <i th:class="${permission.iconClass}" class="glyphicon glyphicon glyphicon-tasks"></i>[[${permission.name}]]<span
                                class="badge"
                                style="float:right">[[${permission.children.size()}]]</span></span>
                <ul style="margin-top:10px;">
                    <li th:each="zpermission:${permission.children}" style="height:30px;">
                        <a href="user.html" th:href="@{${zpermission.url}}"
                           th:style="${activeUrl == zpermission.url}? 'color:red' : ''">
                            <i th:class="${zpermission.iconClass}" class="glyphicon glyphicon-user"></i>[[${zpermission.name}]]</a>
                    </li>
                </ul>
            </li>
            <li class="list-group-item tree-closed">
                        <span><i class="glyphicon glyphicon-ok"></i> 业务审核 <span class="badge"
                                                                                style="float:right">3</span></span>
                <ul style="margin-top:10px;display:none;">
                    <li style="height:30px;">
                        <a href="auth_cert.html"><i class="glyphicon glyphicon-check"></i> 实名认证审核</a>
                    </li>
                    <li style="height:30px;">
                        <a href="auth_adv.html"><i class="glyphicon glyphicon-check"></i> 广告审核</a>
                    </li>
                    <li style="height:30px;">
                        <a href="auth_project.html"><i class="glyphicon glyphicon-check"></i> 项目审核</a>
                    </li>
                </ul>
            </li>
            <li class="list-group-item tree-closed">
                <span><i class="glyphicon glyphicon-th-large"></i> 业务管理 <span class="badge" style="float:right">7</span></span>
                <ul style="margin-top:10px;display:none;">
                    <li style="height:30px;">
                        <a href="cert.html"><i class="glyphicon glyphicon-picture"></i> 资质维护</a>
                    </li>
                    <li style="height:30px;">
                        <a href="type.html"><i class="glyphicon glyphicon-equalizer"></i> 分类管理</a>
                    </li>
                    <li style="height:30px;">
                        <a href="process.html"><i class="glyphicon glyphicon-random"></i> 流程管理</a>
                    </li>
                    <li style="height:30px;">
                        <a href="advertisement.html"><i class="glyphicon glyphicon-hdd"></i> 广告管理</a>
                    </li>
                    <li style="height:30px;">
                        <a href="message.html"><i class="glyphicon glyphicon-comment"></i> 消息模板</a>
                    </li>
                    <li style="height:30px;">
                        <a href="project_type.html"><i class="glyphicon glyphicon-list"></i> 项目分类</a>
                    </li>
                    <li style="height:30px;">
                        <a href="tag.html"><i class="glyphicon glyphicon-tags"></i> 项目标签</a>
                    </li>
                </ul>
            </li>
            <li class="list-group-item tree-closed">
                <a href="param.html"><i class="glyphicon glyphicon-list-alt"></i> 参数管理</a>
            </li>
        </ul>
    </div>
</div>


</body>
</html>